package distriKub;

import java.net.InetAddress;
import java.util.EventObject;

public class ComEvent extends EventObject{
	
	private InetAddress sourceIp;
	
	private static final long serialVersionUID = 1L;
	private String incommingMessage;
	
	public ComEvent(Object source, String inMessage){
		super(source);
		incommingMessage = inMessage;
		}
	
	public String getMessage(){
		return incommingMessage;
	}
	
	public void setSourceIp (InetAddress theSourceIp){
		this.sourceIp = theSourceIp;
	}
	
	public InetAddress getSourceIp(){
		return this.sourceIp;
	}
}
